package com.zxw.java基础.BigDecimal;

import java.math.BigDecimal;

/**
 * @projectName: util-cloud
 * @package: com.zxw.java基础.BigDECIMAL
 * @className: Test
 * @author: zhangxuewei
 * @description:
 * @date: 2024/10/8 15:46
 * @version: 1.0
 */
public class Test {

    public static void main(String[] args) {
//        BigDecimal a = BigDecimal.ONE.add(new BigDecimal("0.1").divide(new BigDecimal("100")));
//        System.out.println(a);
        BigDecimal ss = new BigDecimal("0");
        BigDecimal ss2 = new BigDecimal("1");
        ss.divide(ss2);
        System.out.println(ss.stripTrailingZeros().toPlainString());
    }
}
